package com.code.AZPlan.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 所有的入金和提币流水业务对象
 *
 * @author tangyifei
 * @since 2020年1月5日12:30:05
 */
@ApiModel("钱包账单业务对象")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WalletAllBillBO implements Serializable{

    private static final long serialVersionUID = 7570805373276089021L;

    @ApiModelProperty(value = "金额", example = "1")
    private String amount;

    @ApiModelProperty(value = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    @ApiModelProperty(value = "交易状态 0: init, 1: online(not in block), 2: pending(in block but not confirmed), 3: done 4. failed", example = "1")
    private Integer tranStatus;

    @ApiModelProperty(value = "种类 1提币 2入金", example = "1")
    private Integer category;

    @ApiModelProperty(value = "用户主键", example = "1")
    private String userId;

    @ApiModelProperty(value = "用户手机号", example = "150****0055")
    private String userPhone;

    @ApiModelProperty(value = "币种类型", example = "XWC")
    private String coinType;
}
